<template>
  <!-- vue3 新特性支持多个跟标签 -->
  <h1>{{ count }}</h1>
  <button @click="btn(1)">点击加1</button>
  <button @click="btn(20)">点击加20</button>
</template>

<script>
export default {
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    btn(number) {
      this.count += number;
    },
  },
};
</script>
